\hypertarget{struct_terrain}{\section{Terrain结构体 参考}
\label{struct_terrain}\index{Terrain@{Terrain}}
}


地形配置,来主导生成地形。  




{\ttfamily \#include $<$engine\-\_\-terrain.\-h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{struct_terrain_aa77e28b4a4fb77f10378a6b1443f28ff}{Terrain} (int \-\_\-\-Num\-Row, int \-\_\-\-Num\-Col, float scale\-Y, float cell\-\_\-size, float Height\-Offset=0)
\begin{DoxyCompactList}\small\item\em 要保证地形width,depth是2的倍数. \end{DoxyCompactList}\item 
\hypertarget{struct_terrain_a9fc10d3ad8905ba8a7cc6527ca4a6ed9}{void {\bfseries init} (int \-\_\-\-Num\-Row, int \-\_\-\-Num\-Col, float scale, float cell\-\_\-size, float Height\-Offset)}\label{struct_terrain_a9fc10d3ad8905ba8a7cc6527ca4a6ed9}

\end{DoxyCompactItemize}
\subsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{struct_terrain_a19d19c4d9a1c88fb0c06f0076207413d}{int {\bfseries num\-\_\-vertex\-\_\-per\-\_\-row}}\label{struct_terrain_a19d19c4d9a1c88fb0c06f0076207413d}

\item 
\hypertarget{struct_terrain_ad0fdbadac7baef92925e98529390a16f}{int {\bfseries num\-\_\-vertex\-\_\-per\-\_\-col}}\label{struct_terrain_ad0fdbadac7baef92925e98529390a16f}

\item 
\hypertarget{struct_terrain_acbb8aafbdef42e33c3b163d274499fbc}{int {\bfseries num\-\_\-cell\-\_\-per\-\_\-row}}\label{struct_terrain_acbb8aafbdef42e33c3b163d274499fbc}

\item 
\hypertarget{struct_terrain_ad76c7067f01b26fd470e8722c8ecaeb0}{int {\bfseries num\-\_\-cell\-\_\-per\-\_\-col}}\label{struct_terrain_ad76c7067f01b26fd470e8722c8ecaeb0}

\item 
\hypertarget{struct_terrain_af128006fd98dfac344a8920e184a45c1}{float {\bfseries width}}\label{struct_terrain_af128006fd98dfac344a8920e184a45c1}

\item 
\hypertarget{struct_terrain_aaf87db9624a86aac3ebeda4aa724f7f2}{float {\bfseries depth}}\label{struct_terrain_aaf87db9624a86aac3ebeda4aa724f7f2}

\item 
\hypertarget{struct_terrain_a64897b338f86f1b7e9924cf3db0a1fc7}{float {\bfseries height\-\_\-scale}}\label{struct_terrain_a64897b338f86f1b7e9924cf3db0a1fc7}

\item 
\hypertarget{struct_terrain_acbdea89214d01742a72463d397ff61ae}{float {\bfseries cell\-\_\-space}}\label{struct_terrain_acbdea89214d01742a72463d397ff61ae}

\item 
\hypertarget{struct_terrain_adf2a53551974b44fa644891f6b255fcc}{int {\bfseries num\-\_\-triangle}}\label{struct_terrain_adf2a53551974b44fa644891f6b255fcc}

\item 
\hypertarget{struct_terrain_a517c224835ff8fa7dc4a1ccf5b503bf7}{int {\bfseries num\-\_\-vertex}}\label{struct_terrain_a517c224835ff8fa7dc4a1ccf5b503bf7}

\item 
\hypertarget{struct_terrain_a2f0ca378386dd4c54027a36834599040}{int {\bfseries Num\-Row}}\label{struct_terrain_a2f0ca378386dd4c54027a36834599040}

\item 
\hypertarget{struct_terrain_a80bb675e89dca508afd527580354c05f}{int {\bfseries Num\-Col}}\label{struct_terrain_a80bb675e89dca508afd527580354c05f}

\item 
\hypertarget{struct_terrain_a712a34318eecbce0eef3dcfb40b93fe6}{int {\bfseries Num\-Cell\-Row}}\label{struct_terrain_a712a34318eecbce0eef3dcfb40b93fe6}

\item 
\hypertarget{struct_terrain_ae5c151d3d6fd9bba4ef2658daa1de0a6}{int {\bfseries Num\-Cell\-Col}}\label{struct_terrain_ae5c151d3d6fd9bba4ef2658daa1de0a6}

\item 
\hypertarget{struct_terrain_ab5634c910039dd548dc0b415dde37865}{float {\bfseries Height\-\_\-\-Offset}}\label{struct_terrain_ab5634c910039dd548dc0b415dde37865}

\end{DoxyCompactItemize}


\subsection{详细描述}
地形配置,来主导生成地形。 

\subsection{构造及析构函数说明}
\hypertarget{struct_terrain_aa77e28b4a4fb77f10378a6b1443f28ff}{\index{Terrain@{Terrain}!Terrain@{Terrain}}
\index{Terrain@{Terrain}!Terrain@{Terrain}}
\subsubsection[{Terrain}]{\setlength{\rightskip}{0pt plus 5cm}Terrain\-::\-Terrain (
\begin{DoxyParamCaption}
\item[{int}]{\-\_\-\-Num\-Row, }
\item[{int}]{\-\_\-\-Num\-Col, }
\item[{float}]{scale\-Y, }
\item[{float}]{cell\-\_\-size, }
\item[{float}]{Height\-Offset = {\ttfamily 0}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{struct_terrain_aa77e28b4a4fb77f10378a6b1443f28ff}


要保证地形width,depth是2的倍数. 

如果\-Cell\-\_\-size是1的话，v\-\_\-per\-\_\-row,v\-\_\-per\-\_\-col必须是2n+1; 
\begin{DoxyParams}{参数}
{\em \-\_\-\-Num\-Row,\-:} & y坐标 \\
\hline
{\em \-\_\-\-Num\-Col,\-:} & x坐标 \\
\hline
{\em Scale\-Y,\-:} & 缩放\-Y \\
\hline
{\em cell\-\_\-size间距大小。} & \\
\hline
\end{DoxyParams}
\begin{DoxyRemark}{备注}
内部调用init(); 
\end{DoxyRemark}


该结构体的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
E\-:/!代码工厂/3\-D引擎/engine\-\_\-terrain.\-h\end{DoxyCompactItemize}
